package com.car.service.custormer;

import com.car.dao.custormer.CustomerInfDao;
import com.car.entity.Custormer;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: 贾勇
 * @ClassName CustomerInServiceImpl
 * @Description:客户信息管理
 * @DateTime: 2021-12-06 15:43
 */
@Service
public class CustomerInfServiceImpl implements CustomerInfService {

    @Getter
    @Setter
    @Autowired
    private CustomerInfDao customerInfDao;


    @Override
    public List<Custormer> getAllCustomerInf(Map<String, Object> map) {
        return customerInfDao.getAllCustomerInf(map);
    }

    @Override
    public Integer getAllCustomerInfCount(Map<String, Object> map) {
        return customerInfDao.getAllCustomerInfCount(map);
    }

    @Override
    public Integer addCustomerInf(Custormer custormer) {
        return customerInfDao.addCustomerInf(custormer);
    }

    @Override
    public Integer delCustomerInf(int custormerId) {
        return customerInfDao.delCustomerInf(custormerId);
    }

    @Override
    public Custormer getCustomerInfById(int custormerId) {
        return customerInfDao.getCustomerInfById(custormerId);
    }

    @Override
    public Integer updateCustomerInf(Custormer custormer) {
        return customerInfDao.updateCustomerInf(custormer);
    }
}
